package il.ac.bgu.soa2009.hw6.cinema.impl;

import org.apache.axis.AxisFault;

import javax.xml.namespace.QName;

/**
 * User: Henry
 * Date: 03/04/2009
 * Time: 20:04:17
 */
public class CinemaException extends Exception {
    public CinemaException() {
    }

    public CinemaException(String message) {
        super(message);
    }

    public CinemaException(String message, Throwable cause) {
        super(message, cause);
    }

    public CinemaException(Throwable cause) {
        super(cause);
    }

    public AxisFault toAxisFault() {
        return new AxisFault(new QName(this.getClass().getSimpleName()), this.getMessage(), null, null);
    }
}